package openase.audio;

public class AudioFingerprintStorageFacade {

	public static void store(String name, AudioFingerprint[] fps) throws StorageException {
		Storage storage = Storage.getStorage();
		AudioInfo audio = storage.newAudio(name);

		storage.addAudio(audio);

		for (int i = 0; i < fps.length; i++) {
			// configure the source
			fps[i].setSource(audio);
			storage.addFingerprint(fps[i]);
		}
	}
}
